class Profile:
    def __init__(self, user_id, cost, rate, risk, time):
        self.user_id = user_id
        self.cost = cost
        self.rate = rate
        self.risk = risk
        self.time = time

    def to_string(self):
        return 'user_id: %s, cost: %s, rate: %s, risk: %s, time: %s' % (
            self.user_id, self.cost, self.rate, self.risk, self.time)


class Model:
    def __init__(self, model_profit, low_risk_ratio, high_risk_ratio, maximum_profit, maximum_loss):
        self.expected_profit = model_profit
        self.low_risk_ratio = low_risk_ratio
        self.high_risk_ratio = high_risk_ratio
        self.maximum_profit = maximum_profit
        self.maximum_loss = maximum_loss

    def to_string(self):
        return 'expected_profit: %s, low_risk_ratio: %s, high_risk_ratio: %s, maximum_profit: %s, maximum_loss: %s' % (
            self.expected_profit, self.low_risk_ratio, self.high_risk_ratio, self.maximum_profit, self.maximum_loss)


class User:
    def __init__(self, user_account, user_name, password, email, phone):
        self.usr_account = user_account
        self.user_id = ""
        self.usr_nickname = user_name
        self.usr_password = password
        self.usr_email = email
        self.usr_phone = phone

    def to_string(self):
        return 'user_id: %s, user_name: %s, password: %s, email: %s, phone: %s' % (
            self.user_id, self.usr_nickname, self.usr_password, self.usr_email, self.usr_phone)
